<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>

	<head>
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta charset='utf-8'>
        <meta name="author" content="order by dede58.com"/>
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<title>结算</title>
		<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="Cache-Control" content="no-siteapp">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/base.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/common.css" />
		<script src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.SuperSlide.2.1.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/distpicker.data.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/distpicker.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/main.js"></script>
	</head>

	<body>
		<jsp:include page="title.jsp" flush="true" />
		<jsp:include page="navbar.jsp" flush="true" />

		<!--Main-wrap-->
		<div class="main-wrap graybg pt40 pb40">
			<div class="js-box wrapper white-box">
				<!--收货人信息-->
				<form action="${pageContext.request.contextPath}/Order/create" method="post" id="form2">
				<div class="consignee-info">
				
					<div class="title line-bot"><span class="fs18 pl20 ml40 darkgray">收货人地址</span></div>
					
					<div class="consignee-box clearfix">
					<c:forEach items="${adressList}" var="c" varStatus="st">
						<div class="consignee-block check-box  radius5" >
							<em></em>
										
							<p class="fs14 lh40 clearfix">
								<span class="fl darkgray"><i class="iconfont fs24">&#xe60e;</i>${c.adressName}</span>
								<a onclick="queryAdressById(${c.adressId})" class="fr green edit"><i class="iconfont fs24 green ">&#xe60f;</i>编辑</a>
								<a href="adressDelete1?adressId=${c.adressId}" class="fr green edit"><i class="iconfont fs24 green">&#xe60f;</i>删除</a>								
							</p>
							<p class="fs14 darkgray lh40"><i class="iconfont fs24">&#xe60c;</i>${c.adressPhone}
								</>
								<p class="fs14 darkgray lh30 clearfix">
									<i class="fl iconfont fs24">&#xe610;</i><span class="fl address">${c.adressProvince}${c.adressCity}${c.adressArea}${c.adressAdress}</span>
									
								</p>
								<input type="radio" class="radio-inline"  name="addressId" value="${c.adressId}" <c:if test="">checked="checked" </c:if>  style="float: right;" >
							
							
						</div></c:forEach>
						
						<div class="consignee-block radius5 tc add-info">
							<a href="javascript:" class="full-db alertbox">
								<span class="full-db add pt40"></span>
								<span class="full-db fs14">添加新地址</span>
							</a>
						</div>
					</div>
				</div>
				<!--/end-->
				
				<!--sh-time-->
				<div class="mt10">
					<div class="title line-bot"><span class="fs18 pl20 ml40 darkgray">服务时间</span></div>
					<div class="sh-time clearfix">
						<a href="javascript:" class="fl check-box check_on mt10 mr30">
							<em></em>
							<span class="fs18" >不限送货时间：周一至周日 </span>
							<input type="radio" class="radio-inline"  name="addressId" value="" <c:if test="">checked="checked" </c:if>  style="display: none;" >
						</a>
						<a href="javascript:" class="fl check-box mr30 mt10">
							<em></em>
							<span class="fs18">工作日送货：周一至周五</span>
							<input type="radio" class="radio-inline"  name="addressId" value="" <c:if test="">checked="checked" </c:if>  style="display: none;" >
						</a>
						<a href="javascript:" class="fl  mt10 check-box">
							<em></em>
							<span class="fs18">假日送货：周六至周日</span>
							<input type="radio" class="radio-inline"  name="addressId" value="" <c:if test="">checked="checked" </c:if>  style="display: none;" >
						</a>
					</div>
				</div>
				<!--/end-->
				<!--goodssale-->
				<c:choose>
					<c:when test="${sign==1}">
						<div class="goodssale">
							<div class="title line-bot"><span class="fs18 pl20 ml40 darkgray">商品信息</span></div>
							<table class="table_1 table_goods" border="0" cellpadding="0" cellspacing="0">
								<tr class="line-bot">
									<td width="599">
										<p class="o-goods-info clearfix  ">
											<input type="hidden" name="auctionInfoId" value="${auctionInfo.auctionInfoId}">
											<a href="#" class="fl"><span><img src="${pageContext.request.contextPath}/upload/2.jpg" alt=""></span></a>
											<span class="fl tit mt10">${auctionInfo.art.artName}</span>
										</p>
									</td>
									<td width="148">${auctionInfo.auctionOnePrice}元*1</td>
									<td width="128">有货</td>
									<td width="177"><span class="orange">${auctionInfo.auctionOnePrice}元</span></td>
								</tr>
							</table>
							<div class="sale-info pt10 pb10 clearfix">
								<div class="fr total-amount mb30">
									<p class="mt20 fr">
										<span class="fs16 darkgray clearfix">商品总价：<input type="hidden" name="orderPrice" value="${auctionInfo.auctionOnePrice}"><em class="fr orange fs24 f-arial">¥ ${auctionInfo.auctionOnePrice}</em></span>
									</p>
									<p class="mt10 fr">
										<input type="submit" value="去结算" class="fr orange-but fs20 radius3 jiesuan1">
										<!-- <a href="" class="fr orange-but fs20 radius3" id="jiesuan">去结算</a> -->
									</p>
								</div>
							</div>					
						</div>
					</c:when>
					<c:when test="${sign==2}">
					<div class="goodssale">
							<div class="title line-bot"><span class="fs18 pl20 ml40 darkgray">商品信息</span></div>
							<table class="table_1 table_goods" border="0" cellpadding="0" cellspacing="0">
								<tr class="line-bot">
									<td width="599">
										<p class="o-goods-info clearfix  ">
											<input type="hidden" name="auctionInfoId" value="${auctionInfo.auctionInfoId}">
											<a href="#" class="fl"><span><img src="${pageContext.request.contextPath}/upload/2.jpg" alt=""></span></a>
											<span class="fl tit mt10">${auctionInfo.art.artName}</span>
										</p>
									</td>
									<td width="148">${auctionInfo.auctionNowPrice}元*1</td>
									<td width="128">有货</td>
									<td width="177"><span class="orange">${auctionInfo.auctionNowPrice}元</span></td>
								</tr>
							</table>
							<div class="sale-info pt10 pb10 clearfix">
								<div class="fr total-amount mb30">
									<p class="mt20 fr">
										<span class="fs16 darkgray clearfix">商品总价：<input type="hidden" name="orderPrice" value="${auctionInfo.auctionNowPrice}"><em class="fr orange fs24 f-arial">¥ ${auctionInfo.auctionNowPrice}</em></span>
									</p>
									<p class="mt10 fr">
										<input type="submit" value="去结算" class="fr orange-but fs20 radius3 jiesuan1">
										<!-- <a href="" class="fr orange-but fs20 radius3" id="jiesuan">去结算</a> -->
									</p>
								</div>
							</div>						
						</div>					
					</c:when>
				</c:choose>			
				<!--/end-->
				</form>
			</div>
		</div>
		<!--/end-->

		
		<jsp:include page="foot.jsp" flush="true" />
		<jsp:include page="navbar.jsp" flush="true" />
		
		<div id="mask">
		
			<div class="alert-box radius8">
				<h3 class="fs20">添加收货地址 <span class="close"></span></h3>
				<div class="address-form box-s">
				<div id="error"></div>
					<form action="adressAdd1" method="post">
						<p class="mb20 clearfix">
							<label class="fl">收货人：</label>
							<input type="text" placeholder="姓名" name="adressName"  class="fl ml5 name6">
							<em class="fl red lh40 ml10">*</em>
						</p>
						<p class="mb20 clearfix">
							<label class="fl">手机：</label>
							<input type="text" placeholder="手机" name="adressPhone" class="fl ml5 phone6">
							<em class="fl red lh40 ml10">*</em>
						</p>
						
							<label class="fl">地址：</label>	
							<div id="distpicker1">	
							<select name="adressProvince" class="fl ml5 " style="width: 78px"></select>
							<select name="adressCity" class="fl ml5 " style="width: 78px"></select>
							<select name="adressArea" class="fl ml5 " style="width: 78px"></select>
						</div>
						<p class="mb20 clearfix">
							<label class="fl"></label>
							<input type="text"  placeholder="详细地址" name="adressAdress" class="fl ml5 adress6">
							<em class="fl red lh40 ml10">*</em>
						</p>
						<p class="mb20 clearfix">
							<label class="fl">邮政编码：</label>
							<input type="text" placeholder="邮政编码"  name="adressCode" class="fl ml5 code6">
						</p>
						<p class="mb20 clearfix">
							<label class="fl"></label>
							<input type="submit" value="保存" class="fl orange-but radius3 ml5 adressUpdate6">
							<input type="button" value="取消" class="fl gray-but radius3 ml10 close">
						</p>
					</form>
				</div>
			</div>
		</div>
	</body>
	<script src="${pageContext.request.contextPath}/js/other.js" type="text/javascript" ></script>
	<script type="text/javascript">
	$(".check-box").click(function(){
	    $(this).find("input[type='radio']").attr("checked",true);
	})
	</script>
</html>